package com.yl.users.entity

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.fasterxml.jackson.annotation.JsonFormat
import org.springframework.format.annotation.DateTimeFormat
import java.util.*

/**
 * 代办事项
 */
@TableName("company_user_todo")
data class CompanyUserTodo(

    /**
     * 事件类型
     */
    @TableId(value = "id",type = IdType.AUTO)
    var id: Long ?= null,

    @TableField("title")
    var title: String,

    @TableField("content")
    var content: String,

    @TableField("user_id")
    var userId: Long? = null,

    @TableField("flag")
    var flag: Int? = null,

    @TableField("plan_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    var planTime: Date? = null,

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("real_time")
    var realTime: Date? = null,

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("create_time")
    var createTime: Date? = null,

    @TableField("todo_type")
    var todoType: Int? = null


)
